package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 胡亚敏 on 2016/3/21.
 */
public class Credential implements Parcelable {
    private String object;
    private Wx wx;

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public Wx getWx() {
        return wx;
    }

    public void setWx(Wx wx) {
        this.wx = wx;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.object);
        dest.writeParcelable(this.wx, 0);
    }

    public Credential() {
    }

    protected Credential(Parcel in) {
        this.object = in.readString();
        this.wx = in.readParcelable(Wx.class.getClassLoader());
    }

    public static final Parcelable.Creator<Credential> CREATOR = new Parcelable.Creator<Credential>() {
        public Credential createFromParcel(Parcel source) {
            return new Credential(source);
        }

        public Credential[] newArray(int size) {
            return new Credential[size];
        }
    };
}
